package com.hhss.qishi.DPtest.designpattern.decorator;

public class Milkly extends ComponentDecorator {

    Beverage beverage;

    public Milkly(Beverage beverage){
        this.beverage = beverage;
    }


    @Override
    public String getDescription() {
        return beverage.getDescription() + " ,milkly";
    }

    @Override
    public double cost() {
        return beverage.cost() + 2.5;
    }
}
